package com.dlnu.sujiwords.service;

import com.dlnu.sujiwords.domain.client.AjaxResult;
import com.dlnu.sujiwords.domain.pojo.EnWords;

import java.util.List;

public interface IEnWordsService {
    /*随机抽取单词*/
    List<EnWords> extractWords(int extractNum);
    /*英译汉*/
    AjaxResult EnToCh(String en);
    /*汉译英*/
    AjaxResult ChToEn(String cn);
    /*按词表分页查询*/
    AjaxResult selTableWords(int table,int pageNum,int pageSize);
    /*按表查找单词*/
    AjaxResult searchWords(EnWords search, int table, int pageNum, int pageSize);
    /*按表背单词*/
    AjaxResult remberWords(int table,int hasRememberWordsNum,int willRememberWordsNum);

}
